package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 邀约 
 * @Author  yanluping@outlook.com
 * @Date 2020-07-20 10:25:08 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "邀约")
@Table ( name ="Invite")
public class Invite  implements Serializable {

	private static final long serialVersionUID =  6624352624516513898L;

	/**
	 * 邀约ID
	 */
	@ApiModelProperty(value = "邀约ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Invite_Id" )
	private Long inviteId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 模板名称/邮件主题
	 */
	@ApiModelProperty(value = "模板名称/邮件主题")
   	@Column(name = "Title" )
	private String title;

	/**
	 * 是否发送邮件
	 */
	@ApiModelProperty(value = "是否发送邮件")
   	@Column(name = "IsEmail" )
	private Integer isEmail;

	/**
	 * 邮件发送人
	 */
	@ApiModelProperty(value = "邮件发送人")
   	@Column(name = "Author" )
	private String author;

	/**
	 * 内容
	 */
	@ApiModelProperty(value = "内容")
   	@Column(name = "Content" )
	private String content;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getInviteId() {
		return this.inviteId;
	}

	public void setInviteId(Long inviteId) {
		this.inviteId = inviteId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getIsEmail() {
		return this.isEmail;
	}

	public void setIsEmail(Integer isEmail) {
		this.isEmail = isEmail;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"inviteId='" + inviteId + '\'' +
					"projectId='" + projectId + '\'' +
					"title='" + title + '\'' +
					"isEmail='" + isEmail + '\'' +
					"author='" + author + '\'' +
					"content='" + content + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
